import 'package:flutter/material.dart';
import 'package:flutter_app_demo/base/widget/common_app_bar.dart';
import 'package:flutter_app_demo/pages/home/tab_three_page_view_model.dart';
import 'package:go_router/go_router.dart';
import 'package:mvvm_plus/mvvm_plus.dart';

// Created by 王亮 on 2025/2/10.
class TabThreePage extends ViewWidget<TabThreePageViewModel> {
  TabThreePage({super.key}) : super(builder: () => TabThreePageViewModel());

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: CommonAppBar(
        showLeading: false,
        title: '服务',
      ),
      body: Container(
        margin: const EdgeInsets.only(left: 20, top: 20),
        child: ElevatedButton(
          onPressed: () {
            context.push('/image/picker');
          },
          child: const Text('相册选择器'),
        ),
      ),
    );
  }
}
